export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user/login',
        layout: false,
        name: 'login',
        component: './user/Login',
      },
      {
        path: '/user',
        redirect: '/user/login',
      },
      {
        name: 'register-result',
        icon: 'smile',
        path: '/user/register-result',
        component: './user/register-result',
      },
      {
        name: 'register',
        icon: 'smile',
        path: '/user/register',
        component: './user/register',
      },
      {
        component: '404',
      },
    ],
  },

  {
    name: 'account',
    icon: 'user',
    path: '/account',
    routes: [
      {
        path: '/account',
        redirect: '/account/center',
      },
      {
        name: 'center',
        icon: 'smile',
        path: '/account/center',
        component: './account/center',
        // wrappers: ['@/components/KeepAlive'],
        // keppAlive: true,
        // title: 'menu.account.center'
      },
      {
        name: 'settings',
        icon: 'smile',
        path: '/account/settings',
        component: './account/settings',
        // wrappers: ['@/components/KeepAlive'],
        // keppAlive: true,
        // title: 'menu.account.settings'
      },
    ],
  },
  {
    path: '/home',
    name: 'home',
    icon: 'smile',
    component: './dashboard/analysis/index',
    title:'首页',
  },
  {
    name: 'system',
    icon: 'BugOutlined',
    path: '/system',
    routes: [
      {
        path: '/',
        redirect: '/system/dict',
      },



      {
        name: 'dept',
        icon: 'PartitionOutlined',
        path: '/system/dept',
        component: 'system/dept/index',
        title:'部门管理',
        // access: 'authorize',
        // wrappers: ['@/components/KeepAlive'],
        // keppAlive: true,
        // title: 'menu.title.dept'
      },

      {
        name: 'dict',
        icon: 'PartitionOutlined',
        path: '/system/dict',
        component: 'system/dict/index',
        title:'字典管理',
        // access: 'authorize',
        // wrappers: ['@/components/KeepAlive'],
        // keppAlive: true,
        // title: 'menu.title.dict'
      },
    ],
  },

  {
    path: '/',
    redirect: '/home',
  },
  {
    component: './404',
  },
];
